cmake_minimum_required(VERSION 3.5)

SET(CMAKE_C_COMPILER "/mnt/wsl/Tina-Linux/Tina-Linux/prebuilt/gcc/linux-x86/arm/toolchain-sunxi-musl/toolchain/bin/arm-openwrt-linux-gcc")
project(lvgl_fb)

include_directories(.)
include_directories(./users)
include_directories(./users/mcu_sdk)
include_directories(./lvgl)
include_directories(./lvgl/src)
include_directories(./guider/custom)
include_directories(./guider/generated)
include_directories(./guider/generated/guider_customer_fonts)
include_directories(./guider/generated/guider_fonts)
include_directories(./guider/generated/images)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

add_subdirectory(lvgl)
add_subdirectory(lv_drivers)
add_subdirectory(guider)
add_subdirectory(users)

SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-pthread")

add_executable(${PROJECT_NAME} main.c mouse_cursor_icon.c)
target_link_libraries(${PROJECT_NAME} PRIVATE gui_guider users lvgl lvgl::examples lvgl::demos lvgl::drivers)
